/*
 * AnalogInputRelay.h
 *
 *  Created on: 2012. 10. 22.
 *      Author: dalxx
 */

#ifndef ANALOGINPUTRELAY_H_
#define ANALOGINPUTRELAY_H_
#include "Relay.h"




namespace PLCLib {

class AnalogInputRelay: public Relay {
protected:
	int port;
	int rangeMin, rangeMax;
	bool rangeType;
public:
	AnalogInputRelay(const char* _name,int _port, float Vref, float _rangeMin, float _rangeMax, int _rangeType);
	virtual ~AnalogInputRelay();
	virtual bool CalculateNext();
};

} /* namespace PLCLib */
#endif /* ANALOGINPUTRELAY_H_ */
